<template>
	<view class="profile-data d-flex jc-evenly ai-center">
		<view class="item" @tap="openItem(0)">
			<view class="num">{{userData.praiseNum}}</view>
			<text>获赞</text>
		</view>
		<view class="item" @tap="openItem(1)">
			<view class="num">{{userData.followNum}}</view>
			<text>关注</text>
		</view>
		<view class="item" @tap="openItem(2)">
			<view class="num">{{userData.fensiNum}}</view>
			<text>粉丝</text>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['userData'],
		methods: {
			openItem(index) {
				this.$emit("openItem", index)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.profile-data {
		padding: 20upx 0;

		.item {
			color: $uni-text-color-grey;
			text-align: center;

			.num {
				color: $uni-text-color;
				font-weight: bold;
				font-size: 32upx;
			}
		}
	}
</style>
